import { defineStore } from "pinia";
export const useStore = defineStore(
  "user",
  () => {
    const user = ref({
      name: "张三",
      age: 18,
    });
    return {
      user,
    };
  },
  {
    persist: true,
  } // 持久化
);
//默认导出
export default useStore;
